package io.gitee.kotle.demo.mvvm_demo.websocket

import android.view.View
import io.gitee.kotle.android.adapter.RecyclerViewHolder
import io.gitee.kotle.demo.databinding.HolderWebSocketSendBinding

class WebSocketSendHolder :
    RecyclerViewHolder<WebSocketSendHolder.Bean, HolderWebSocketSendBinding> {

    class Bean(val text: String)

    constructor(binding: HolderWebSocketSendBinding) : super(binding)
    constructor(itemView: View) : super(itemView)

    override fun bindData(data: Bean) {
        mBinding.text.text = data.text
    }
}